<?php defined("MAIN_DIR") or die("No direct access"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<link rel="icon" type="image/png" href="/favicon.png" />
	<link rel="stylesheet" href="/files/css/styles.css">
	<script type="text/javascript" src="/files/js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			var menu = $("#menu-list");
			var current = $("#menu-list li.current");
			var sliders = $(".slider");
			$('#menu-list li:has(a)').hover(function(){
				var element = $(this);
				var menu_offset = menu.offset().left;
				var left = element.offset().left-menu_offset;
				var width = element.width();
				sliders.stop().animate({"left":left+"px","width":width+"px"})
			},function(){
				var menu_offset = menu.offset().left;
				var left = current.offset().left - menu_offset;
				var width = current.width();
				sliders.stop().animate({"left":left+"px","width":width+"px"})
			});

			sliders.css({"left":current.offset().left - menu.offset().left+"px","width":current.width()+"px"})
		});
	</script>
	<title><?php
		echo isset($page_title) ? $page_title : "Маргарита и Антон";
	?></title>
	<!-- ga counter -->
	<script type="text/javascript">
	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-29290213-1']);
	  _gaq.push(['_trackPageview']);

	  (function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();
	</script>
</head>
	<body>
		<div id="head" href="/">
			<a href="/"><img src="/files/img/logo.png" alt="Маргарита и Антон"></a>
		</div>
		<div id="menu-wraper" align="center">
			<ul id="menu-list">
				<li class='slider'><a href=""></a></li>
				<li class='<?php echo $route->getPath(1) == "" ? "current" : ""; ?> link'><a href="/">Мы</a></li>
				<li><div class="separator"></div></li>
				<li class='<?php echo $route->getPath(1) == "invite" ? "current" : ""; ?> link'><a href="/invite">Приглашение</a></li>
				<li><div class="separator"></div></li>
				<li class='<?php echo $route->getPath(1) == "wedding" ? "current" : ""; ?> link'><a href="/wedding">Свадьба</a></li>
				<li class='slider sl-bottom'><a href=""></a></li>
			</ul>
		</div>

		<div id="content-wraper">
			<div class="ornament top right">
				<div class="ornament top left">
					<div class="ornament bottom left">
						<div class="ornament bottom right">
							<div id="content">